#! /usr/bin/env python
# encoding: utf-8


# the following two variables are used by the target "waf dist"
VERSION='0.0.1'
APPNAME='avrosp'

# these variables are mandatory ('/' are converted automatically)
top = '.'
out = 'build'

def options(opt):
        opt.load('compiler_cxx')

def configure(conf):
        conf.load('compiler_cxx')
        conf.env.append_value('CXXFLAGS', ['/Zm200', '/Zc:wchar_t', '/O2', '/MT', '/EHsc' , '/GR', '/nologo'])
        #conf.env.append_value('LIBPATH', ['d:/projects/cpplibs/boost_1_47/lib'])
        conf.env.append_value('LIB', ['Advapi32'])
        #conf.env.append_value('STLIBPATH', ['d:/projects/test_FANN/fann/fann-2.1.0/bin'])



def build(bld):
        import glob
        src_list = glob.glob('./*.cpp')
        incl = ["d:/projects/cpplibs/boost_1_47/","d:/projects/test_FANN/fann/fann-2.1.0/src/include/"]
        bld.program(
                                source=src_list,
                                includes = incl,
                                #defines  = ['BOOST_PROGRAM_OPTIONS_DYN_LINK','FANN_NO_DLL','_UNICODE','UNICODE'],
                                defines  = ['BOOST_PROGRAM_OPTIONS_DYN_LINK','FANN_NO_DLL'],
                                target='avrosp'
                                )

